﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<System.Collections.Generic.IEnumerable<CH.Reia.Entity.Link>>" %>

<%@ Import Namespace="MvcContrib.UI.Grid" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Link
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%= Html.ActionLink("Create", "create", "link") %>
    <br />
    <br />
    <%= Html.Grid<CH.Reia.Entity.Link>(Model).Columns(column => {
                                                                    column.For(link => link.Url);
                                                                    column.For(link => link.Title);
                                                                    column.For(link => link.Note);
                                                                    column.For(link => Html.ActionLink("edit", "edit", new { id = link.LinkId })).Named("Edit Link").DoNotEncode();
                                                                    column.For(link => Html.ActionLink("delete", "delete", new { id = link.LinkId })).Named("Delete Link").DoNotEncode();
                                                                 })%>
</asp:Content>
